package ControlLayer;
import ModelLayer.*;

/**
 * Write a description of class CustomerCTRL here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class CustomerCtr
{
    // instance variables - replace the example below with your own
    private CustomerContainer cc;

    /**
     * Constructor for objects of class CustomerCTRL
     */
    public CustomerCtr()
    {
        cc = cc.getInstance();
    }
    
    public void addCustomer(String name, String code, String address, int paymentInfo, String email, int tlf)  //used to create a new customer
    {
        Customer tempCustomer = new Customer(name, code, address, paymentInfo, email, tlf);
        cc.addCustomer(tempCustomer);
    }
    
    public Customer findCustomer(String name, String code) // used to get a customer
    {
        return cc.findCustomer(name, code);
    }
}
